package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.Lsh先享后选设置Model;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by sxy on 2016/7/11.
 */
@Transactional
public interface Lsh先享后选设置Repository extends JpaRepository<Lsh先享后选设置Model, Integer>, JpaSpecificationExecutor<Lsh先享后选设置Model> {
	
	 @Query("select u from Lsh先享后选设置Model u WHERE u.参数=?1 and u.金融编号=?2")	
	 Lsh先享后选设置Model ifExitByNumAndSet(String canShu, Integer maxFinanceNum);
}
